c =[
"110.57.16.147",
"36.194.74.124",
"36.194.74.126",
"36.194.74.127",
"36.199.174.60",
"110.218.237.30",
"36.197.124.139",
"36.219.35.167",
"36.202.89.47",
"36.194.74.125",
"36.200.147.124",
"36.200.147.125",
"36.200.147.127",
"36.197.124.169",
"36.197.124.171",
"36.197.124.172",
"36.197.124.173",
"36.197.124.124",
"36.197.124.125",
"36.197.124.126",
"36.197.124.127",
"36.197.124.128",
"36.197.124.129",
"36.197.124.130",
"36.197.124.131",
"36.197.124.132",
"36.197.124.133",
"36.197.124.134",
"36.197.124.135",
"36.197.124.136",
"36.197.124.137",
"36.197.124.138",
"36.197.124.140",
"36.197.124.143",
"36.197.124.144",
"36.197.124.145",
"36.197.124.146",
"36.197.124.150",
"36.197.124.152",
"36.197.124.154",
"36.197.124.155",
"36.197.124.156",
"36.197.124.157",
"36.197.124.158",
"36.197.124.160",
"36.197.124.161",
"36.197.124.163",
"36.197.124.164",
"36.197.124.165",
"36.197.124.166",
"36.197.124.167",
"36.202.89.1",
"36.202.89.2",
"36.202.89.4",
"36.202.89.5",
"36.202.89.6",
"36.202.89.8",
"36.202.89.9",
"36.202.89.10",
"36.202.89.11",
"36.202.89.12",
"36.202.89.14",
"36.202.89.15",
"36.202.89.17",
"36.202.89.18",
"36.202.89.19",
"36.202.89.20",
"36.202.89.21",
"36.202.89.22",
"36.202.89.24",
"36.202.89.25",
"36.202.89.26",
"36.202.89.27",
"36.202.89.28",
"36.202.89.30",
"36.202.89.31",
"36.202.89.34",
"36.202.89.35",
"36.202.89.36",
"36.202.89.37",
"36.202.89.38",
"36.202.89.39",
"36.202.89.40",
"36.202.89.41",
"36.202.89.42",
"36.202.89.43",
"36.202.89.44",
"36.202.89.45",
"36.202.89.46",
"36.202.89.48",
"36.202.89.49",
"36.202.89.50",
]

import redis
r = redis.Redis()
for i in c:
    #r.lpush('ip:port',i)
    r.lpush('rtb',i)
print r.llen("rtb")
